﻿<%@ Page Title="Chức năng hệ thống | VNT Việt Nam" Language="C#" MasterPageFile="~/Admin.master"
    AutoEventWireup="true" CodeFile="ChucNang.aspx.cs" Inherits="ChucNang" %>

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <div class="panel panel-success margin">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        Chức năng hệ thống
                    </h3>
                </div>
                <div class="panel-body">
                    <table width="100%">
                        <tr>
                            <td>
                            
                                <span style="margin-left: 5px;">Tên chức năng</span><br />
                                <asp:TextBox ID="txtTenCN" runat="server" CssClass="form-control withall"></asp:TextBox>
                                <asp:RequiredFieldValidator ValidationGroup="Them" ID="RequiredFieldValidator2" runat="server"
                                    ControlToValidate="txtTenCN" ErrorMessage="Nhập tên chức năng" Display="None" Text="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="margin-left: 5px;">Chức năng cha</span><br />
                                <asp:DropDownList CssClass="form-control" DataTextField="TenCN" DataValueField="IDs"
                                    ID="dlChucNang" Width="100%" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="margin-left: 5px;">Tag</span><br />
                                <asp:TextBox ID="txtTag" runat="server" CssClass="form-control withall"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="margin-left: 5px;">Link</span><br />
                                <asp:TextBox ID="txtLink" runat="server" CssClass="form-control withall"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="margin-left: 5px;">Vị trí hiển thị</span><br />
                                <asp:TextBox ID="txtViTri" runat="server" CssClass="form-control withall"></asp:TextBox>
                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers,Custom"
                                    TargetControlID="txtViTri" ValidChars="." />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnSave" ValidationGroup="Them" runat="server" Style="margin-left: 5px;"
                                    Text="Lưu lại" CssClass="btn btn-primary" OnClick="btnSave_Click" />
                                <asp:Button ID="btnCancel" runat="server" Text="Nhập mới" CssClass="btn btn-warning"
                                    OnClick="btnCancel_Click" />
                            </td>
                        </tr>
                    </table>
                    <asp:ValidationSummary ID="ValidationSummary1" HeaderText="Bạn phải nhập các trường sau:"
                        ShowMessageBox="true" ValidationGroup="Them" ShowSummary="false" EnableClientScript="true"
                        runat="server" />
                        <br />
                        <asp:Label ID="lb" runat="server"></asp:Label>
                </div>
            </div>
        </ContentTemplate>
        
    </asp:UpdatePanel>
</asp:Content>
